package com.tank;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.Rectangle;

/**
 * 墙类
 *
 * @author LEON
 */
public class Wall {
	private int x;
	private int y;
	private int width;
	private int height;
	public Wall(int x, int y, int width, int height) {
		this.x = x;
		this.y = y;
		this.width = width;
		this.height = height;
	}
	public void drawWall(Graphics g) {
		g.setColor(Color.WHITE);
		g.fillRect(x, y, width, height);
	}
	public Rectangle getRect() {
		return new Rectangle(x, y, width, height);
	}

}
